package org.imagiccode.core.aspect;

/**
 * 处理数据源类
 *
 * @author 1340760685@qq.com
 * @create 2016-11-30 21:26
 **/
public class HandleDataSource {
    private static final ThreadLocal<String> holder = new ThreadLocal<>();

    public static void putDataSource(String dataSource) {
        holder.set(dataSource);
    }

    public static String getDataSource() {
        return holder.get();
    }
}
